/**
 * @description Model Manifest
 *
 * @author Xiongmao
 */

var db = require('../db');

module.exports = db.model('Good', {
    tableName: 'goods',
    hasTimestamps: true,
    category() {
        return this.belongsTo('Category', 'category_id');
    },

    parentCategory() {
        return this.belongsTo('Category', 'category_parent_id');
    }
});
